//
//  FLSREcommendHeadView.m
//  TravelToHelp
//
//  Created by lanou3g on 15/10/28.
//  Copyright © 2015年 冯贵宾. All rights reserved.
//

#import "FLSREcommendHeadView.h"
#import "UIView+WLFrame.h"

@implementation FLSREcommendHeadView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubViews];
    }
    return self;
}

- (void)addSubViews
{
    self.hotCity = [UIButton buttonWithType:(UIButtonTypeCustom)];
    self.hotCity.frame = CGRectMake(0, 0, self.width / 2, self.height);
    [self.hotCity setTitle:@"火热" forState:(UIControlStateNormal)];
    [self.hotCity setTitleColor:[UIColor redColor] forState:(UIControlStateNormal)];
    
    
    self.funnySeason = [UIButton buttonWithType:(UIButtonTypeCustom)];
    self.funnySeason.frame = CGRectMake(self.hotCity.right, 0, self.width / 2, self.height);
    [self.funnySeason setTitle:@"趣季" forState:(UIControlStateNormal)];
    [self.funnySeason setTitleColor:[UIColor whiteColor] forState:(UIControlStateNormal)];
    
    
    self.motionView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.width / 2, self.height)];
    self.motionView.layer.cornerRadius = 14;
    
    self.motionView.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.motionView];
    
    self.frontView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.width,self.height)];
    
    [self.frontView addSubview:self.hotCity];
    [self.frontView addSubview:self.funnySeason];
    
    [self addSubview:self.frontView];
}


@end
